import request from '@/utils/request'
import qs from 'qs'
// 查询设备标签列表
export const getdevicelistapi = params => request.get('/sst-microservice-biz/sst/device/tags/list', { params })
// 查询标签名称列表
export const getlabelnameapi = params => request.get('/sst-microservice-biz/sst/device/tags/names', { params })
// 新增标签信息
export const addlabelxinapi = data => request.post('/sst-microservice-biz/sst/device/tags/label', data)
// 新增设备标签
export const adddevicelabelapi = data => request.post('/sst-microservice-biz/sst/device/tags/add', data)
// 删除设备标签
export const deldevicelabelapi = data => request.post('/sst-microservice-biz/sst/device/tags/delete', qs.stringify(data))
// 修改设备标签
export const updatedeviceapi=data=>request.post('/sst-microservice-biz/sst/device/tags/update',data)